package javabasic.threads;

public class ThreadTest02 {
    public static void main(String[] args) {
        Thread thread = new Thread(new RunnabeTest());
        thread.start();
        for (int i = 0; i <2000 ; i++) {
            System.out.println("main线程输出："+i);
        }
    }
}

class RunnabeTest implements Runnable{
    @Override
    public void run() {
        for (int i = 0; i < 2000; i++) {
            System.out.println("test线程输出："+i);
        }
    }
}
